package be.groept.ace.enquete.model.dao;

import java.util.SortedSet;

import be.groept.ace.enquete.model.beans.User;
import be.groept.ace.enquete.model.exceptions.DAOException;

public interface UserDAO {
	public void insertUser(User user) throws DAOException;
	public void deleteUser(User user) throws DAOException;
	public User findUser(String email, String password) throws DAOException;
	public void updateUser(User user) throws DAOException;
	public SortedSet<User> findAllUsers() throws DAOException;
	public User findUserByPK(int id) throws DAOException;
	public User findUserByEmail(String email) throws DAOException;
}
